home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / samples / midp_lin / makefile < prev    next >
Encoding:
Makefile  |  1997-01-16  |  1.9 KB  |  79 lines

  1. #*      Makefile
  2. #*
  3. #* Include file for MIDAS Module Player for Linux
  4. #*
  5. #* [Hacked by Petteri]
  6. #*
  7. #* Copyright 1996,1997 Housemarque Inc.
  8. #*
  9. #* This file is part of the MIDAS Sound System, and may only be
  10. #* used, modified and distributed under the terms of the MIDAS
  11. #* Sound System license, LICENSE.TXT. By continuing to use,
  12. #* modify or distribute this file you indicate that you have
  13. #* read the license and understand and accept it fully.
  14. #*
  15.  
  16.  
  17. # Destination directory for midp executable
  18. DEST = /usr/local/bin
  19.  
  20. # MIDAS base directory:
  21. MIDASDIR = ../..
  22.  
  23. # MIDAS library directory
  24. LIBDIR = $(MIDASDIR)/lib
  25.  
  26. # MIDAS include directory
  27. INCDIR = $(MIDASDIR)/src
  28.  
  29.  
  30. CPP = gcc
  31.  
  32. # The safest options
  33. #CPPOPTS = -O2 -I$(INCDIR) -fomit-frame-pointer -m486 -g -fpack-struct -Wall -D__LINUX__ --DDEBUG
  34.  
  35. # For Pentium optimizing gcc 2.7.2p
  36. #CPPOPTS = -O6 -I$(INCDIR) -frisc -fomit-frame-pointer -mpentium -g -fpack-struct -fstrength-reduce -Wall -D__LINUX__ -DDEBUG
  37.  
  38. # For gcc 2.7.2.1 (or any "normal" gcc) with pthreads
  39. CPPOPTS = -O6 -I$(INCDIR) -fomit-frame-pointer -m486 -fpack-struct -fstrength-reduce -Wall -D__LINUX__ -DDEBUG -shared -D_REENTRANT
  40.  
  41. # For gcc 2.7.2p with pthreads
  42. #CPPOPTS = -O6 -I$(INCDIR) -frisc -fomit-frame-pointer -mpentium -bpentium-linux -V2.7.2p -fpack-struct -fstrength-reduce -Wall -D__LINUX__ -DDEBUG -shared -D_REENTRANT
  43.  
  44.  
  45. ASM = gcc
  46. ASMOPTS = $(CPPOPTS)
  47. LINK = gcc -lncurses -lpthread -L$(LIBDIR) -o
  48. LIB = ar
  49. TOUCH = /usr/bin/touch
  50.  
  51. .SUFFIXES:
  52. .SUFFIXES: .c .h .S .o .pic
  53.  
  54. all :                   midp
  55.  
  56. %.o:            %.c
  57.         $(CPP) $(CPPOPTS) -c $< -o $@
  58.  
  59. %.o:            %.S
  60.         $(ASM) $(ASMOPTS) -c $< -o $@
  61.  
  62. %.pic:            %.c
  63.         $(CPP) $(CPPOPTS) -fpic -c $< -o $@
  64.  
  65. %.pic:            %.S
  66.         $(ASM) $(ASMOPTS) -fpic -c $< -o $@
  67.  
  68.  
  69. midp:           midplx.o $(LIBDIR)/libmidas.so
  70.         $(LINK) midp midplx.o -lmidas
  71.  
  72. midplx.o :      midplx.c
  73.  
  74.  
  75. clean:
  76.         rm -f *.o *~ midp
  77.  
  78. install:    midp
  79.         install -s midp $(DEST)